package com.linkwechat.wecom.mapper;

import com.linkwechat.wecom.domain.WeworkKfAccount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.linkwechat.wecom.domain.WeworkKfMemberRelation;

import java.util.List;

/**
 * 企微客服账号Mapper接口
 *
 * @author ruoyi
 * @date 2022-02-17
 */
public interface WeworkKfAccountMapper extends BaseMapper<WeworkKfAccount> {
    public int insertWeworkKfAccount(WeworkKfAccount weworkKfAccount);

    public int resetSyncFlag(WeworkKfAccount weworkKfAccount);

    public int copySyncFlagToState(WeworkKfAccount weworkKfAccount);

    /**
     * 判断账号是否已同步
     *
     * @param weworkKfAccount 表名称
     * @return 列信息
     */
    public List<WeworkKfAccount> selectByScene(WeworkKfAccount weworkKfAccount);
}
